var ajaxconfig = {headers: {'X-Requested-With': 'XMLHttpRequest','Content-Type': 'application/x-www-form-urlencoded'}};
var load = true;
Vue.use(vant.Lazyload,{loading:'/res/images/loading.gif',error:'/res/images/loading.gif'});
/*! layer 封装弹层组件  By chaituan */
function onClickLeft(){
	window.history.go(-1);
}

function onClickRight(){
	window.location.href = "/mobile/home";
}

function dingw(la,lg) {//定位
	axios.post('/api/home/dingw', Qs.stringify({la:la,lg:lg}),ajaxconfig).then(function(response) {
  	  	var data = response.data;
  	  	vant.Toast.clear();
      	if(data.state==1){
      		location.reload();
  	  	}else{
  	  	  	vant.Toast(data.message);
  	  	}
    });
}